package cn.zl.html.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HtmlController {

    @RequestMapping(path = {"/", "/GB28181"})
    public ModelAndView index() {
        ModelAndView view = new ModelAndView();
        view.setViewName("/GB28181/index.html");
        return view;
    }

    @RequestMapping(path = "/GB28181/login")
    public ModelAndView login() {
        ModelAndView view = new ModelAndView();
        view.setViewName("/GB28181/index.html");
        return view;
    }

    @RequestMapping(path = "/GB28181/admin/**")
    public ModelAndView admin() {
        ModelAndView view = new ModelAndView();
        view.setViewName("/GB28181/index.html");
        return view;
    }

    @RequestMapping(path = "/apidoc")
    public ModelAndView apidoc() {
        ModelAndView view = new ModelAndView();
        view.setViewName("/apidoc/index.html");
        return view;
    }

}
